package cetb.domain;

import java.util.Map;

public class Offer extends Product{

	private float discount;
	private boolean vip;
	private Map<Product, Float> products;
	
	public float getDiscount(){
		return discount;
	}

	public void setDiscount(float discount){
		this.discount = discount;
	}
	
	public Boolean getVip(){
		return vip;
	}

	public void setVip(Boolean vip){
		this.vip = vip;
	}

	public Map<Product, Float> getProducts() {
		return products;
	}

	/**
	 * Setter of the property <tt>products</tt>
	 * @param products  The products to set.
	 * @uml.property  name="products"
	 */
	public void setProducts(Map<Product, Float> products) {
		this.products = products;
	}

	@Override
	public String toString() {
		return "Offer [offerID="+super.getProductID()+", description="+super.getDescription()+", price=" + super.getPrice() +", stock="
		+ super.getStock() + ", category=" + super.getCategory()+", discount="+discount+ ", vip="+ vip+ ", products=" + products
		+ "]";
	}
	
}
